package Demo3;

import java.io.*;
import java.util.Random;
import java.util.concurrent.CountDownLatch;

public class Text {
    private static final Object lock = new Object();

    public static void main(String[] args) throws InterruptedException, IOException {
        for(int i = 0; i < 5;i++) {
            // 创建文件和文件夹 并且在文件内输入10给随机小写字母
            CreateFile createFile = new CreateFile((char) ('a' + i));
            System.out.println("开始创建文件夹: " + (char) ('a' + i));
            createFile.start();
            createFile.join();//
            CountFile countFile = new CountFile((char) ('a' + i));
            countFile.start();
        }
    }
}